#include <stdio.h>
// 字符串数组
void main()
{
    char weekdays[7][10] = {
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
        "Sunday"};

    for (int i = 0; i < 7; i++)
    {
        printf("%s\n", weekdays[i]);
    }
    printf("-------------------------------\n");
    // 数组的第二维，长度统一定为10，有点浪费空间，因为大多数成员的长度都小于10。解决方法就是把数组的第二维，从字符数组改成字符指针
    char *weekdays1[] = {
        "Monday",
        "Tuesday",
        "Wednesday",
        "Thursday",
        "Friday",
        "Saturday",
        "Sunday"};
    for (int i = 0; i < 7; i++)
    {
        printf("%s\n", weekdays1[i]);
    }
}